package com.xianyun.site.iblog;

import com.xianyun.common.security.config.annotation.EnableCustomConfig;
import com.xianyun.common.security.config.annotation.EnableResourceServer;
import com.xianyun.common.security.config.annotation.EnableRyFeignClients;
import com.xianyun.common.swagger.annotation.EnableCustomSwagger2;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
/**
 * 云博客系统
 * @author mac_zyj
 */
@Slf4j
@EnableResourceServer
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication(
        scanBasePackages = {"com.xianyun.site.iblog","com.alibaba.cola","com.xianyun.common.security.common"})
@MapperScan({"com.xianyun.site.iblog.gatewayimpl.database","com.xianyun.site.iblog.common.database"})
@SpringCloudApplication
public class CloudBlogApplication {
    public static void main(String[] args) {
        SpringApplication.run(CloudBlogApplication.class, args);
        log.info("(♥◠‿◠)ﾉﾞ  博客系统启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " .-------.       ____     __        \n" +
                " |  _ _   \\      \\   \\   /  /    \n" +
                " | ( ' )  |       \\  _. /  '       \n" +
                " |(_ o _) /        _( )_ .'         \n" +
                " | (_,_).' __  ___(_ o _)'          \n" +
                " |  |\\ \\  |  ||   |(_,_)'         \n" +
                " |  | \\ `'   /|   `-'  /           \n" +
                " |  |  \\    /  \\      /           \n" +
                " ''-'   `'-'    `-..-'              ");
    }
}
